package com.ln.cmsln.controller.zlxl.api;


import com.alibaba.fastjson.JSON;
import com.ln.cmsln.mapper.DimensionsserviceMapper;
import com.ln.cmsln.pojo.entity.Dimensionsservice;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wuwenzhe
 * @since 2022-03-31
 */

@CrossOrigin//跨域
@RestController
@RequestMapping("/apidimensionsservice")
public class ApiDimensionsserviceController {
    @Resource
    private DimensionsserviceMapper dimensionsserviceMapper ;

    @RequestMapping("getAll")
    public List<Dimensionsservice> getAll(){
        List<Dimensionsservice> dimensionsservices = dimensionsserviceMapper.selectList(null);
        return dimensionsservices ;
    }
}

